{% extends 'backend/backend_base.html'%}


{% block article %}
{#    展示当前用户所有的文章 #}
    <table class='table table-striped table-hover'>
        <thead>
            <tr>
                <th>标题</th>
                <th>发布时间</th>
                <th>评论数</th>
                <th>点赞数</th>
                <th>操作</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {% for article in article_list %}
                <tr>
                    <td><a href="/{{ request.user.username }}/article/{{ article.pk }}/">{{ article.title }}</a></td>
                    <td>{{ article.create_time|date:'Y-m-d' }}</td>
                    <td>{{ article.comment_num }}</td>
                    <td>{{ article.up_num }}</td>
                    <td>
                        <a href="#">编辑</a>
                    </td>
                    <td>
                        <a href="#">删除</a>

                    </td>
                </tr>

            {% endfor %}


        </tbody>


    </table>
{% endblock %}